{ This unit is part of Scan Antivirus Present.

    Scan Antivirus Present is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Foobar is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Foobar.  If not, see <http://www.gnu.org/licenses/>.

}
unit ulegend;

{$mode objfpc}

interface

uses
  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
  ComCtrls, StdCtrls;

type

  { Tflegend }

  Tflegend = class(TForm)
    GroupBox1: TGroupBox;
    lv_legend: TListView;
    mdescrip: TMemo;
    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    procedure lv_legendClick(Sender: TObject);
    procedure lv_legendSelectItem(Sender: TObject; Item: TListItem;
      Selected: Boolean);
  private
    { private declarations }
  public
    { public declarations }
  end; 

var
  flegend: Tflegend;

implementation

{ Tflegend }

procedure Tflegend.FormClose(Sender: TObject; var CloseAction: TCloseAction);
begin
  CloseAction:=caFree;
end;

procedure Tflegend.lv_legendClick(Sender: TObject);
begin

end;

procedure Tflegend.lv_legendSelectItem(Sender: TObject; Item: TListItem;
  Selected: Boolean);
var
   vdesc : String;
begin
  mdescrip.Lines.Clear;
  case Item.Index of
    2 : vdesc:='Indica que el equipo no ha sido marcado para comprobación, marque la casilla correspondiente y oprima el botón Scan';
    1 : vdesc:='Ordenador remoto con antivirus corriendo';
    3 : vdesc:='Equipo remoto sin antivirus o el mismo no reacciona al test de Eicar';
    0 : vdesc:='Falló la conexión al equipo remoto, pudiera ser por 1. Cortafuegos, 2: No existe el recurso compartido (Ej. C$), 3: Equipo apagado, 4: Acceso denegado al equipo o recurso';
  end;
  mdescrip.Lines.Add(vdesc);
end;

initialization
  {$I ulegend.lrs}

end.

